package com.wondersgroup.core.util;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 查询、插入缓存
 * @author liufen
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface Cache {
	String key() default "";//设置缓存存储的key
	int expiration() default 0;//设置有效时间，单位为秒，默认为0，即永久有效
}
